package com.example.demos.mapper;

import com.example.demos.dto.SupplierDTO;
import com.example.demos.entity.Supplier;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigInteger;
import java.util.List;

@Mapper
public interface SupplierMapper {
   List<Supplier> selectSupplierListByPage(SupplierDTO supplierDTO);

   void addSupplier(Supplier supplier);

   void deleteSupplier(BigInteger id);

   Supplier selectExist(Supplier supplier);

   Supplier selectSupplier(BigInteger id);

   void updateSupplier(Supplier supplier);
}
